package cn.zijiancode.starter.config;

import cn.zijiancode.starter.handler.DemoHandler;
import cn.zijiancode.starter.listener.DemoListener;
import org.springframework.context.annotation.Bean;

/**
 * 自动配置类
 *
 * @author Zijian Liao
 * @since 1.0.0
 */
public class DemoAutoConfiguration {

    @Bean
    public DemoHandler demoHandler(){
        return new DemoHandler();
    }

    @Bean
    public DemoListener demoListener(){
        return new DemoListener();
    }
}
